package modelo;
import org.hibernate.HibernateException;
import org.hibernate.Session;

import entities.MozoEntity;
import entities.ProveedorEntity;
import hbt.AbstractHibernateManager;

public class ProveedorDao extends AbstractHibernateManager  {

		public void save(ProveedorEntity pr){
			Session s= null;
			try {
				s=getNewSession();
				s.beginTransaction();
				s.persist(pr);
				s.flush();
				s.getTransaction().commit();
				System.out.println("[proveedor PERSISTED ON TABLE Proveedor]::OK");
			} catch (HibernateException e) {
				e.printStackTrace();
			} finally {
				closeSession(s);
			}
		}
		
	

	
}
